package com.epfresh.bean;

import java.math.BigDecimal;

/**
 * Created by wzh on 16-9-8.
 */
public class StoreGoodsPrice {

    //店铺总计商品总价
    private double salePrice;
    //店铺优惠后价格
    private double discountedPrice;
    //店铺Id
    private String storeId;

    public double getSalePrice() {
        return salePrice;
    }

    public void setSalePrice(double salePrice) {
        this.salePrice = salePrice;
    }

    public double getDiscountedPrice() {
        return discountedPrice;
    }

    public void setDiscountedPrice(double discountedPrice) {
        this.discountedPrice = discountedPrice;
    }

    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }

    public void addSalePrice(double salePrice) {
        this.salePrice += salePrice;
    }

    public void addDiscountedPrice(double discountedPrice) {
        this.discountedPrice += discountedPrice;
    }
    public void minusDiscountedPrice(double discountedPrice) {
        this.discountedPrice -= discountedPrice;
    }

    public void addAllPrice(double discountedPrice) {
        this.discountedPrice += discountedPrice;
        this.salePrice += discountedPrice;
    }

    public void reSetDiscountedPrice(){
        this.discountedPrice = salePrice;
    }
}
